<?php

/*

Club Admin (club_admin.php)

*/
ob_start();
$page_title = "My Club";
$rank_check = 1;
include "header.inc.php";
$clubrank_check = 2;
$page_heading = "Home";
include "club.inc.php";

if ($type == "topic")
{
	mysql_query("DELETE FROM club_forums2 WHERE id = '$id' AND game = '$game' AND club = '$clubid'");
	mysql_query("DELETE FROM club_forums2 WHERE type = '2' AND thread = '$id' AND game = '$game' AND club = '$clubid'");

	die(header("Location: club_forums.php?game=$game&clubid=$clubid"));
}

if ($type == "reply")
{
	mysql_query("DELETE FROM club_forums2 WHERE type = '2' AND id = '$id' AND game = '$game' AND club = '$clubid'");
}

die(header("Location: club_forums.php?game=$game&clubid=$clubid&act=view_topic&topic=$topic"));

?>